/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package UTILITARIOS;

import javax.swing.*;


/**
 *
 * @author Administrador
 */
public class TimeLabel extends JLabel implements Runnable{

    private Thread thread;
    private Hora hora = new Hora();
	//private VDateLabel dateLabelDependent;

	public TimeLabel(){
		//this.dateLabelDependent = dateLabelDependent;
		start();
	}

	public void start() {
		thread = new Thread(this);
		thread.start();
	}

	public void run() {
		while (true) {
			setText( "   Hora: "+hora.getHora() );
			try {
				Thread.sleep(300);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}

			
		}
	}

}
